home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / alv.sun / alv.lha / src / p_include.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-08  |  1.3 KB  |  71 lines

  1. #include "defs.h"
  2.  
  3. #define MAX_CMAP_LEN    256
  4. #define FGCOLOR        MAX_CMAP_LEN-1
  5. #define BGCOLOR        0
  6. #define CMAP_NAME    "palette"
  7.  
  8. #define set_color(q,i,j,k)  r[q]=i; g[q]=j; b[q]=k
  9. #define ijton(i,j)    24*j+i
  10.  
  11. nsigned char r[MAX_CMAP_LEN],
  12.           g[MAX_CMAP_LEN],
  13.           b[MAX_CMAP_LEN];    /* current copy of the colormap */
  14.  
  15. nsigned char old_r, old_g, old_b;
  16. /* right-mouse-paint saved copy, length */
  17. nsigned char undo_r[MAX_CMAP_LEN],
  18.           undo_g[MAX_CMAP_LEN],
  19.           undo_b[MAX_CMAP_LEN];
  20. nt          undo_start, undo_len;
  21.  
  22. har *progname;
  23. nt    selected_i;
  24. nt    selected_j;
  25. nt    selected_n;
  26. nt    hi, hj;
  27. nt    highlighted;
  28. nt    selected;
  29. har    s[256];
  30.  
  31. nt    xoff;
  32. nt    yoff;
  33. nt    xspace;
  34. nt    yspace;
  35. nt    cwidth;
  36. nt    cheight;
  37. nt bar_offset;
  38.  
  39.  
  40. Frame        base_frame;
  41. anvas        single_canvas,
  42.         display_canvas,
  43.         multiple_canvas;
  44. anel        control_panel;
  45. anel_item    file_name_item,
  46.         red_slider,
  47.         green_slider,
  48.         blue_slider,
  49.         msg_item;
  50. ixrect *pr;
  51. olormap_t colormap;
  52. ursor        brush_cursor;
  53.  
  54. xtern void     draw_a_box(),
  55.         fill_a_box(),
  56.         reset_proc(),
  57.         save_proc(),
  58.         load_proc(),
  59.         done_proc(),
  60.         quit_proc(),
  61.         red_proc(),
  62.         green_proc(),
  63.         blue_proc(),
  64.         paint_multiple_canvas(),
  65.         paint_single_canvas(),
  66.         multiple_canvas_event_proc(),
  67.         display_event_proc(),
  68.         single_canvas_event_proc(),
  69.         put_colors(),
  70.         update_colors();
  71.